import java.lang.String;

public class Four {
    public static void main (String[] args) {
        if (args.length < 1)
            return;
        System.out.println(convert2(args[0]));
    }

    private static String convert(String s) {
        char[] str = s.trim().toCharArray();
        char[] data = new char[str.length << 2];

        int i = 0;
        for (char c : str) {
            if (c == ' ') {
                data[i++] = '%';
                data[i++] = '2';
                data[i++] = '0';
            } else {
                data[i++] = c;
            }
        }

        data[i] = 0;
        return new String(data);
    }

    private static String convert2(String s) {
        char[] str = s.trim().toCharArray();
        StringBuffer sb = new StringBuffer();
        for (char c : str) {
            if (c == ' ')
                sb.append("%20");
            else
                sb.append(c);
        }

        return sb.toString();
    }
}
